﻿@model RazorWebSite.Controllers.DateModel
@{
    ViewContext.ValidationMessageElement = "ValidationInPartialView";
    ViewContext.ValidationSummaryMessageElement = "ValidationSummaryInPartialView";
}
@Html.ValidationSummary(true, "MySummary")
@Html.ValidationMessage("Error")
@Html.TextBox("Prefix.Property1")
@Html.EditorForModel()
@Html.ViewContext.ClientValidationEnabled